home *** CD-ROM | disk | FTP | other *** search
- /*
- * WordSpell.ttx ... ARexx Program to spell check a word while in TurboText
- * Requires ISpell version 2.1ljr (or later) with ARexx Server mode and TurboText
- * Started: 12/19/89
- * Updated for CED v2.0: Tue Jan 23 03:11:24 1990
- * Last update: Fri Feb 1 07:46:30 1991
- * Copyright (C) 1989, 1990, 1991 Loren J. Rittle
- * Use as you will, just document your changes and keep my copyright
- * notice intact.
- * Updated for TurboText: Tue May 14 02:29:33 1991 by Christopher A. Wichura
- * Reworked for GUISpell public release: Thu Mar 26 02:12:39 1992 LJR
- */
- options results
- if ~show(ports, 'IRexxSpell') then
- do
- address command 'run <nil: >nil: ispell -r >nil: <nil:'
- address command waitforport 'IRexxSpell'
- end
-
- GetWord
- item = result
-
- GetCursorPos
- parse var result line column fold .
-
- GetPort
- portname = result
-
- address 'IRexxSpell' quickcheck item
- if result = 'bad' then do
- if ~show(ports, 'GUISpell') then
- do
- address command 'run <nil: >nil: GUISpell <nil: >nil:'
- address command waitforport 'GUISpell'
- end
- if ~show(ports, 'GUISpell') then
- do
- address 'GUISpell' checkcallbackhook 'rexx:ttx/WordSpellCallBack.rexx' portname line column fold item
- address 'GUISpell' check item
- end
- else
- beepscreen
- end
- exit
-